//
// Created by 郝羽 on 2018/6/19.
//

#ifndef RTC_XSWITCH2_METRIC_SERVER_H
#define RTC_XSWITCH2_METRIC_SERVER_H

#include "metric.hpp"

#include "config.hpp"

struct MetricServer;

MetricServer* metric_server_open(Context&);
uint16_t metric_server_port(MetricServer* server);
MetricsByTime metric_server_metrics(MetricServer* server);
void metric_server_close(MetricServer* server);


#endif //RTC_XSWITCH2_METRIC_SERVER_H
